<?php
/*
 * Created on Jun 4, 2009
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 require_once('Dao.php');

 class EnterFeedBackDao extends Dao
 {
 	const INSERT_FEEDBACK="INSERT INTO feedback VALUES (?,?,?,?,?);";


 	function addFeedback($name, $email, $subject, $comment)
	{
		$stmt = $this->mysqli->prepare(self::INSERT_FEEDBACK);
		$blank = null;
		$stmt->bind_param("sssss", $name, $email, $subject, $comment, $blank);

		$stmt->execute();
    	return 'Thank you for your comment';
    }

 }
?>


